unzip

fun <A, B> Option<Pair<A, B>>.unzip(): Pair<Option<A>, Option<B>>

Transforms an Option of a Pair into a Pair of an Option of the first value and an Option of the second value.

Return

A Pair of an Option of the first value and an Option of the second value.

fun <A, B, C> Option<Triple<A, B, C>>.unzip(): Triple<Option<A>, Option<B>, Option<C>>

Transforms an Option of a Triple into a Triple of an Option of the first value, an Option of the second value, and an Option of the third value.

Return

A Triple of an Option of the first value, an Option of the second value, and an Option of the third value.